@model CooWork.Models.Department

@{
    ViewBag.Title = "Delete";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Delete</h2>

<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>Department</legend>

    <div class="display-label">DepartmentName</div>
    <div class="display-field">@Model.DepartmentName</div>

    <div class="display-label">parentId</div>
    <div class="display-field">@Model.parentId</div>

    <div class="display-label">DepartmentDesc</div>
    <div class="display-field">@Model.DepartmentDesc</div>

    <div class="display-label">Leader</div>
    <div class="display-field">@Model.Leader</div>

    <div class="display-label">Department1</div>
    <div class="display-field">@(Model.Department1 == null ? "None" : Model.Department1.Count.ToString())</div>

    <div class="display-label">Department2</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.Department2).ToString()</div>
</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Delete" /> |
        @Html.ActionLink("Back to List", "Index")
    </p>
}


